# def jishu(n):
#     cheng=1
#     for i in range(1,n+1):
#         cheng *=i
#     print(cheng)
# jishu(5)
def jiecheng(n):
    if n >1:
        return n*jiecheng(n-1)
    return 1
print(jiecheng(5))

